package main

import "fmt"

func main() {
	
	var str string = "中国"
	fmt.Println(str)

	var str2 string = "abc"
	str2 = "def"
	// str2[0] = 'f'
	fmt.Println(str2)

	// 有特殊字符可以有反引号
	var str3 string = `
		package main

		import "fmt"

		func main() {

			var flag1 bool = true
			fmt.Println(flag1)

			var flag2 bool = 5>9
			fmt.Println(flag2)
		}
	`
	fmt.Println(str3)

	var str4 string = "abc" + "dfg"
	fmt.Println(str4)

	str4 += "qwer"
	fmt.Println(str4)

	// 换行 + 保留上一行结尾
	var str5 string = "abc" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + 
		"dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg" + 
		"dfg" + "dfg" + "dfg" + "dfg" + "dfg" + "dfg"
	fmt.Println(str5)


}